import request from '@/utils/request'
export function vehiclePageApi (params) {
  return request({
    url: '/api/carReport/page',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function vehicleAddApi (params) {
  return request({
    url: '/api/carReport/add',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function getVehicle (params) {
  return request({
    url: '/api/carReport/getData',
    method: 'GET',
    params
  })
}

export function vehicleUpdateApi (params) {
  return request({
    url: '/api/carReport/update',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}
